(function () {
    angular.module('app')
        .component('xxSystemManager',{
            templateUrl:'/app/system-manager/system-manager/system-manager.html',
            controller:ctrl
        });

    function ctrl($scope,$state,$mdSidenav,$timeout) {
        $scope.createAccount = function () {
          $state.go('system-manager.create-account');
        };
        $scope.changeMenu = function () {
            $state.go('system-manager.change-menu');
        };
        $scope.viewLog = function () {
            $state.go('system-manager.view-log');
        };
        $scope.personInfo = function () {
            $state.go('user.person-info');
        };
        $scope.logout = function () {
            $state.go('login');
        };
    }
})();